﻿namespace TicketReservationSystem.Common.Utils
{
    public class PriceInterval
    {
        private readonly float lower;
        private readonly float upper;

        public PriceInterval(float lower, float upper)
        {
            this.lower = lower;
            this.upper = upper;
        }

        public float Lower
        {
            get { return lower; }
        }

        public float Upper
        {
            get { return upper; }
        }

        public bool IsBelong(float value)
        {
            return value <= upper && value >= lower;
        }
    }
}
